package com.tedu.bill;

/**
 * Author：毕龙
 * Date: 2024/3/21 20:15
 */
public class TestSwitchType {
    public static void main(String[] args) {
        double a = 10;
        //Incompatible types. Found: 'double',
        // required: 'char, byte, short, int, Character, Byte, Short, Integer, String, or an enum'
        // a是一个部兼容的内容
        /*switch (a){

        }*/

        String str = "龙龙";
        switch (str){
            case "龙龙":
                System.out.println("龙龙是宝鸡太白县");
                break;
            case "朱琳":
                System.out.println("朱琳是宝鸡金台区");
                break;
            default:
                System.out.println("毕哥是宝鸡扶风县");
        }
    }
}
